<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>canvas时钟</title>
    <style type="text/css">
        div{
            text-align: center;
            margin-top: 250px;
        }
        #clock{
            border: 1px solid #cccccc;
        }
    </style>
</head>
<body>

<div>
    <canvas id="clock" height="200px" width="200px"></canvas>
</div>

<script type="text/javascript" src="clock.js"></script>
</body>
</html>